[testing] Tests mark themselves UNSUPPORTED if features aren't available#35
Merged
[testing] Tests mark themselves UNSUPPORTED if features aren't available#35
Conversation
Contributor
Author
|
E.g. if you didn't install torch dependencies (e.g. did And if you then install Without this change the above UNSUPPORTED tests would show FAILED instead. |
adam-smnk
approved these changes
Dec 9, 2025
tkarna
approved these changes
Dec 9, 2025
Contributor
tkarna
left a comment
There was a problem hiding this comment.
LGTM. At the moment we are only testing the "everything is installed" case in CI, right?
Member
|
why is the kernelbench still unsupported after installing torch? |
Contributor
Author
The example speaks for itself 😉 |
e5dd205 to
efff1b1
Compare
Contributor
Author
Indeed. If people want this UNSUPPORTED mechanism tested in CI as well, do let me know. |
b58358f to
84fd5fb
Compare
Also loosens dependency upon `uv` for running tests -- all that is required is that `lit` is running in a suitable environemnt (e.g. through `uv run lit .` or by first entering an venv and then `lit .`).
Means at least one more example can run without torch being installed.
1# with '#' will be ignored, and an empty message aborts the commit.
84fd5fb to
64bf0ab
Compare
64bf0ab to
e13be22
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also loosens dependency upon
uvfor running tests -- all that is required is thatlitis running in a suitable environment (e.g. throughuv run lit .or by first entering an venv and thenlit .).Also splits
lighthouse.utilsinto two so that the examples/tests that don't actually depend ontorchaccidently end up with that dependency (there was one such such instance already).